
#define AGENT_ID	"SHUNZHEN"//"23192768"
//#define AGENT_ID	"23192768"//"12345678"

#define PACK_SIZE   1024

#define PHASE_WAIT_RESUME			0
#define PHASE_WAIT_AUTH_RESPONSE	1
#define PHASE_WAIT_APP_HEADER		2
#define PHASE_WAIT_DATA				3
#define PHASE_WAIT_APP_LIST			4
#define PHASE_COMPLETE				'C'
#define PHASE_READY					'R'

extern void gen_app_info(void);
extern BYTE Down_App(void);

/*
typedef struct {
    WORD hdrflg;        // should be 0xff 0xff
    WORD action_flg;
    BYTE page_num;
    WORD start_addr;
    WORD end_addr;
    WORD chksum;
    WORD chksumx;
    BYTE name[10];
    BYTE ver[3];
    BYTE subver;
    BYTE dat_p_start;
    BYTE dat_p_end;
    BYTE dat_addr_start[3];
    BYTE dat_addr_end[3];
    BYTE agent_id[8];
    BYTE model[10];
    BYTE compression;
    WORD total_blk;
} rheader_blk;

typedef struct {
  BYTE  app_ver[3];
  BYTE  app_name[10];
  WORD  checksum;
  WORD  disp_checksum;
  BYTE  agent_id[8];
  BYTE  name[10];
  BYTE  version[3];
  BYTE  subver;
  BYTE  virgin;
  BYTE  app_id;
  DWORD data_start;
  DWORD data_end;
} app_info_t;
*/

